/**
 */
package mymobile.mobileTest.impl;

import mymobile.mobileTest.List;
import mymobile.mobileTest.MobileTestPackage;

import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.ENotificationImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>List</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link mymobile.mobileTest.impl.ListImpl#getObjectList <em>Object List</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class ListImpl extends ComponentImpl implements List {
	/**
	 * The default value of the '{@link #getObjectList() <em>Object List</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getObjectList()
	 * @generated
	 * @ordered
	 */
	protected static final String OBJECT_LIST_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getObjectList() <em>Object List</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getObjectList()
	 * @generated
	 * @ordered
	 */
	protected String objectList = OBJECT_LIST_EDEFAULT;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ListImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return MobileTestPackage.Literals.LIST;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getObjectList() {
		return objectList;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setObjectList(String newObjectList) {
		String oldObjectList = objectList;
		objectList = newObjectList;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, MobileTestPackage.LIST__OBJECT_LIST, oldObjectList, objectList));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
		switch (featureID) {
			case MobileTestPackage.LIST__OBJECT_LIST:
				return getObjectList();
		}
		return super.eGet(featureID, resolve, coreType);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eSet(int featureID, Object newValue) {
		switch (featureID) {
			case MobileTestPackage.LIST__OBJECT_LIST:
				setObjectList((String)newValue);
				return;
		}
		super.eSet(featureID, newValue);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eUnset(int featureID) {
		switch (featureID) {
			case MobileTestPackage.LIST__OBJECT_LIST:
				setObjectList(OBJECT_LIST_EDEFAULT);
				return;
		}
		super.eUnset(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean eIsSet(int featureID) {
		switch (featureID) {
			case MobileTestPackage.LIST__OBJECT_LIST:
				return OBJECT_LIST_EDEFAULT == null ? objectList != null : !OBJECT_LIST_EDEFAULT.equals(objectList);
		}
		return super.eIsSet(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		if (eIsProxy()) return super.toString();

		StringBuffer result = new StringBuffer(super.toString());
		result.append(" (objectList: ");
		result.append(objectList);
		result.append(')');
		return result.toString();
	}

} //ListImpl
